package com.wanmait.deliverymangementsystem.service.impl;

import com.wanmait.deliverymangementsystem.mapper.CityMapper;
import com.wanmait.deliverymangementsystem.pojo.City;
import com.wanmait.deliverymangementsystem.service.CityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CityServiceImpl implements CityService {
    @Resource
    private CityMapper cityMapper;
    @Override
    public List<City> findCityByProvinceID(Integer province) {
        return cityMapper.findByProvinceid(province);
    }

    @Override
    public City findCityByID(Integer id) {
        return cityMapper.findCityByID(id);
    }

}
